<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>信丰OA系统</title>
<link rel="shortcut icon" href=favicon.ico type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/style/common/base.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/style/page.css" />
<%-- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/style/index.css" /> --%>


<link href="<%=request.getContextPath()%>/style/resource/css/basic.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/resource/css/navbar.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/resource/css/main.css" rel="stylesheet" type="text/css"/> 
<!--Start-->
<link rel="stylesheet" href="<%=request.getContextPath()%>/kindeditor/themes/default/default.css" />
<link href="<%=request.getContextPath()%>/style/resource/add.css" rel="stylesheet" type="text/css"/>

<!-- easyui -->
<link href="<%=request.getContextPath()%>/style/themes/gray/easyui.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/js/jplugin/uploadify/uploadify.css" rel="stylesheet" type="text/css"/>

<script type="text/javascript">
	window.global = {};
	window.global['contextPath'] = "<%=request.getContextPath()%>";
</script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.10.2.min.js/"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/kindeditor/kindeditor-all-min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jplugin/My97DatePicker/WdatePicker.js" ></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jplugin/jquery.easyui.min.js" ></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jplugin/easyui-lang-zh_CN.js" ></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/core.js/">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/lang_notice.js/"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/lang_faq.js/"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/lang_soft.js/"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/lang_site.js/"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/lang_setting.js/"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/lang_area.js/"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/uploadPreview.js/"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jplugin/uploadify/jquery.uploadify.js/"></script>
</head>
<%
	TblOaNotice coreNotice =  (TblOaNotice)request.getAttribute("coreNotice");
	NoticeForm form = (NoticeForm)request.getAttribute("command");
	String title = StringUtils.isNotBlank(coreNotice.getTitle())?coreNotice.getTitle():"";
	String content = StringUtils.isNotBlank(coreNotice.getContent())?coreNotice.getContent():"";
	String publicTime = (null!=coreNotice.getPublicTime())?DateFormatUtils.format(coreNotice.getPublicTime().getTime(), "yyyy-MM-dd HH:mm:ss"):"";
	String group = "0";
	
	String sendTo = StringUtils.isNotBlank(coreNotice.getSendto())?coreNotice.getSendto():"";
	String copyTo = StringUtils.isNotBlank(coreNotice.getCopyto())?coreNotice.getCopyto():"";
	String publicDepart = StringUtils.isNotBlank(coreNotice.getPublicDepart())?coreNotice.getPublicDepart():"";
	
	String docNumber = StringUtils.isNotBlank(coreNotice.getDocNumber())?coreNotice.getDocNumber():"";
	String publicMan = StringUtils.isNotBlank(coreNotice.getPublicMan())?coreNotice.getPublicMan():"";
	
	String siteName = StringUtils.isNotBlank(coreNotice.getSiteName())?coreNotice.getSiteName():"";
%>
<style>
.mainPreview{
 	background: #fff none repeat scroll 0 0;
    height: auto;
    text-align: left;
}
.container-prev{
 	float: none!important;
    height: auto;
    width:auto;
    margin:auto;
}
.noticeFormatter-prev{
	width:620px;
	font-size:13px;
	margin:0 auto;
}
</style>
<body>
<div class="mainPreview">
	<div class="container container-prev">
		<div class="noticeFormatter noticeFormatter-prev">
			<div class="titleBox">
		         <p class="mainTitle" name="top"><%=title%></p>
		         <p class="secondTitle">文件编号：【<%=docNumber%>】</p>
		         <p class="secondTitle">发布时间：<%=publicTime %>&nbsp;&nbsp;发布人：<%=publicMan%>
		         </p>
		     </div>
		     <div class="section">
		        <p><%=content %></p>                
		    </div>
		    <div class="notice-detail-bold">
		        <div class="notice-detail-bold-item">
					<label>主送：<%=sendTo %></label>	        
		        </div>
		        <div class="notice-detail-bold-item">
					<label>抄送：<%=copyTo %></label>	        
		        </div>
		        <div class="notice-detail-bold-item">
					<label>发文：<%=publicDepart %></label>	        
		        </div>
		    </div>
	    </div>
	</div>
</div>
</body>
</html>



